home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / HENSA / MATHS / PLPLOT / PLPLOT.ZIP / include / plplotTK.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-20  |  1.4 KB  |  49 lines

  1. /* $Id: plplotTK.h,v 1.3 1994/07/19 22:34:22 mjl Exp $
  2.  * $Log: plplotTK.h,v $
  3.  * Revision 1.3  1994/07/19  22:34:22  mjl
  4.  * Internal header file inclusion changed to /not/ use a search path so that
  5.  * it will work better with makedepend.
  6.  *
  7.  * Revision 1.2  1994/06/30  18:36:37  mjl
  8.  * Minor change to what header files are included.
  9.  *
  10.  * Revision 1.1  1994/04/08  12:21:18  mjl
  11.  * Added to allow access to TK driver internals by determined users.
  12. */
  13.  
  14. /*    plplotTK.h
  15.  
  16.     Holds system header includes, prototypes of TK driver
  17.     utility functions, and definition of the state structure.
  18. */
  19.  
  20. #ifndef __PLPLOTTK_H__
  21. #define __PLPLOTTK_H__
  22.  
  23. /* Several of the PLplot header files must be included first */
  24. /* I only do this conditionally because of the search path */
  25.  
  26. #ifndef __PLPLOT_H__
  27. #include <plplot.h>
  28. #endif
  29. #ifndef __PDF_H__
  30. #include <pdf.h>
  31. #endif
  32.  
  33. #include <tk.h>
  34.  
  35. /* One of these holds the TK driver state information */
  36.  
  37. typedef struct {
  38.     Tk_Window w;        /* Main window */
  39.     Tcl_Interp *interp;        /* Interpreter */
  40.     PLINT xold, yold;        /* Coordinates of last point plotted */
  41.     int   exit_eventloop;    /* Flag for breaking out of event loop */
  42.     int   pass_thru;        /* Skips normal error termination when set */
  43.     char  *cmdbuf;        /* Command buffer */
  44.     int   cmdbuf_len;        /* and its length */
  45.     PLiodev *iodev;        /* I/O device info */
  46. } TkDev;
  47.  
  48. #endif    /* __PLPLOTTK_H__ */
  49.